<?php if (!defined("BASEPATH")) exit("No direct script access allowed");

class UsersOverview extends CI_Controller {

     public function index() {
        $this->load->model("UsersModel");

        $template_data = array();
        $template_data["title"] = "Users";

        $users = $this->UsersModel->getUsers();

        // create data array to send to the profile view
        $view_data = array();
        $view_data["users"] = $users;
        $this->load->view("usersoverview", $view_data, $template_data);
        }
}